﻿namespace DoNet.WechatPay.V2.Entitys.Results
{
    /// <summary>
    /// 
    /// </summary>
    public class OrderResultMicropay : PayResultBase
    {
        /// <summary>
        /// 用户标识	
        /// </summary>
        public string openid { set; get; } = string.Empty;
        /// <summary>
        /// 是否关注公众账号
        /// </summary>
        public string is_subscribe { set; get; } = string.Empty;
        /// <summary>
        /// 用户子标识
        /// </summary>
        public string sub_openid { set; get; } = string.Empty;
        /// <summary>
        /// 是否关注子公众账号
        /// </summary>
        public string sub_is_subscribe { set; get; } = string.Empty;
        /// <summary>
        /// 付款银行
        /// </summary>
        public string bank_type { set; get; } = string.Empty;
        /// <summary>
        /// 标价币种
        /// </summary>
        public string fee_type { set; get; } = string.Empty;
        /// <summary>
        /// 标价金额
        /// 订单总金额，单位为分，只能为整数，详见支付金额
        /// </summary>
        public long total_fee { set; get; }
        /// <summary>
        /// 现金支付币种
        /// </summary>
        public string cash_fee_type { set; get; } = string.Empty;
        /// <summary>
        /// 现金支付金额
        /// </summary>
        public long cash_fee { set; get; }
        /// <summary>
        /// 应结订单金额
        /// 当订单使用了免充值型优惠券后返回该参数，应结订单金额=订单金额-免充值优惠券金额。
        /// </summary>
        public long settlement_total_fee { set; get; }
        /// <summary>
        /// 代金券金额
        /// “代金券”金额<=订单金额，订单金额-“代金券”金额=现金支付金额，详见支付金额
        /// </summary>
        public long coupon_fee { set; get; }
        /// <summary>
        /// 微信支付订单号
        /// </summary>
        public string transaction_id { set; get; } = string.Empty;
        /// <summary>
        /// 商户订单号
        /// </summary>
        public string out_trade_no { set; get; } = string.Empty;
        /// <summary>
        /// 商家数据包
        /// </summary>
        public string attach { set; get; } = string.Empty;
        /// <summary>
        /// 支付完成时间
        /// 订单生成时间，格式为yyyyMMddHHmmss，如2009年12月25日9点10分10秒表示为20091225091010。详见时间规则
        /// </summary>
        public string time_end { set; get; } = string.Empty;
    }
}
